package cjyyp.day04;

import java.util.Date;
import java.util.concurrent.*;

public class 自定义线程池 {
    public static void main(String[] args) {
        ThreadPoolExecutor pool = new ThreadPoolExecutor(2,3,1000L,
                TimeUnit.MILLISECONDS, new LinkedBlockingDeque<>(2));
        ExecutorService executorService= Executors.newCachedThreadPool();
        ExecutorService executorService1 = Executors.newFixedThreadPool(20);
        ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(2);
        Date date=new Date();
        
        System.out.println(date);





    }
}
